package config

type UserServiceConfig struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
	Name string `mapstructure:"name"`
}

type ServerConfig struct {
	Tags        []string          `mapstructure:"tags"`
	Host        string            `mapstructure:"host"`
	Port        int               `mapstructure:"port"`
	Name        string            `mapstructure:"name"`
	UserSrv     UserServiceConfig `mapstructure:"userservice"`
	JWTInfo     JWTConfig         `mapstructure:"jwt"`
	ConsulInfo  ConsulConfig      `mapstructure:"consul"`
	RedisConfig RedisConfig       `mapstructure:"redis"`
}

type JWTConfig struct {
	SigningKey string `mapstructure:"key"`
}

type ConsulConfig struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
}
type RedisConfig struct {
	Addr string `mapstructure:"addr"`
	Port int    `mapstructure:"port"`
}
